﻿<?php
include_once("../../includes/metodos.php");
include_once("action.php");

checkUser();
connectSql();
isAdmin();
include_once('../cabecalho.php');

if(!empty($_POST['cmd']) && $_POST['cmd']=='insert'){
	insert();	
}
?>

<form style="border:1px solid#00ffff;" action="new.php" method="post">
	<label>Titulo:</label>
	<input type="text" name="categoria">
	<input type="hidden" name="cmd" value="insert">
	<input type="submit" value="Salvar">
</form>